package baiqitun.stupro.common.workflow.exception.enums;

import baiqitun.stupro.common.exception.enums.ExceptionEnumParent;

/**
 * 流程异常
 * @author kedaji
 */
public enum WorkflowExceptionEnum implements ExceptionEnumParent {
    /**
     *
     */
    UNKNOWN_PROCESS_VARIABLE("", "未知的流程变量"),
    UNKNOWN_HISTORIC_TASK("","未知的历史任务"),
    TASK_EXISTED("","任务已发起，请等待处理结果"),
    ;
    private String code;
    private String msg;

    WorkflowExceptionEnum(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
